package com.m3u8.db;

import android.content.Context;
import android.content.ServiceConnection;

import java.lang.ref.WeakReference;

public abstract class M3u8DbCallback extends DbCallback {

    public WeakReference<Context> contextWeakReference;
    public WeakReference<ServiceConnection> serviceConnectionWeakReference;

    public M3u8DbCallback(Context context, ServiceConnection serviceConnection) {
        contextWeakReference = new WeakReference<>(context);
        if (serviceConnection != null) {
            serviceConnectionWeakReference = new WeakReference<>(serviceConnection);
        }
    }

    public M3u8DbCallback(Context context) {
        this(context, null);
    }
}
